<?php
if(isset($types)) {
    echo $this->Js->object($types);
  }
